package com.melesta.payment.inapp3;

import com.melesta.engine.Error;
import com.melesta.payment.interfaces.IRequest;

public class InAppRequest
  implements IRequest
{
  private int countPerItem;
  private float multiplier;
  private String name;
  private String sku;
  private final InAppSystem system;

  public InAppRequest(InAppSystem paramInAppSystem)
  {
    this.system = paramInAppSystem;
    this.countPerItem = 1;
  }

  public int getCountPerItem()
  {
    return this.countPerItem;
  }

  public float getMultiplier()
  {
    return this.multiplier;
  }

  public String getName()
  {
    return this.name;
  }

  public String getPaymentSystemName()
  {
    return "inapp";
  }

  public String getSku()
  {
    return this.sku;
  }

  public InAppSystem getSystem()
  {
    return this.system;
  }

  public void run()
  {
    try
    {
      this.system.buy(this);
      return;
    }
    catch (Exception localException)
    {
      Error.processException(localException);
    }
  }

  public InAppRequest setCountPerItem(int paramInt)
  {
    this.countPerItem = paramInt;
    return this;
  }

  public IRequest setMultiplier(float paramFloat)
  {
    this.multiplier = paramFloat;
    return this;
  }

  public InAppRequest setName(String paramString)
  {
    this.name = paramString;
    return this;
  }

  public InAppRequest setSku(String paramString)
  {
    this.sku = paramString;
    return this;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.payment.inapp3.InAppRequest
 * JD-Core Version:    0.6.2
 */